package tasks;


import java.util.TimerTask;

import boot.Boot;



public class Touch52Task extends TimerTask {

	private Boot midlet;
	
	private int numStroke = 1;
	
	public Touch52Task(Boot aMidlet) {
		super();
		this.midlet = aMidlet;
	}

	public void run() {
		if (numStroke == 1) {
			midlet.keyPressed(Boot.GOOD_MODE);
		} else if (numStroke == 2) {
			midlet.keyPressed(Boot.HIP_HOP_CODE);
		}
	}
	
	public void newStroke() {
		numStroke++;
	}

}
